﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePwd.aspx.cs" Inherits="WMS6.Web.Administration.ChangePwd" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head >
    <title>ChangePwd</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script type="text/javascript">
       
        //初始化页面
        window.onload = function(){
            initQueryPage();
        }
         function isSecurity(v)
         {
                if (v.length < 0){iss.reset();return;}
                var lv = -1;
                if (v.match(/[a-z]/ig)){lv++;}
                if (v.match(/[0-9]/ig)){lv++;}
                if (v.match(/(.[^a-z0-9])/ig)){lv++;}
                if (v.length < 6 && lv > 0){lv--;}
                iss.reset();
                switch(lv)
                {                                
                        case 0:
                                iss.level0();
                                break;
                        case 1:
                                iss.level1();
                                break;
                        case 2:
                                iss.level2();
                                break;
                        default:
                                iss.reset();
                }
        }
        var iss = {
                reset:function(){
                
                document.getElementById('img_div').className="pwddefault";
                },
                level0:function()
                {
                 document.getElementById('img_div').className="pwdweak";        
                },
                level1:function(){
                    document.getElementById('img_div').className="pwdmedium";                    
                },
                level2:function(){
                  document.getElementById('img_div').className="pwdstrong";      
                }
        }
     
       
</script>
</head>
<body>
    <form id="F1040" runat="server" defaultfocus="txtOldPassword" defaultbutton="btnOK">
    <div>
        <div style="margin-left:10px; margin-top:10px;">
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL"></div>
            </div>
            <div class="tabLabelCont tabCur">
                <asp:Label ID="lblChangePwd" runat="server" Text="修改密码" CssClass="hover" 
                    meta:resourcekey="lblChangePwd"></asp:Label>
            </div>
            <div style="float: left">
                <div class="tabR"></div>
            </div>
        </div>
        <div id="div_query">
            <table width="360" cellpadding="0" cellspacing="0" border=0>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblOldPassword" runat="server" Text="旧密码" 
                            meta:resourcekey="lblOldPassword"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtOldPassword" runat="server" TextMode="Password" MaxLength="20"
                            CssClass="textbox" meta:resourcekey="txtOldPassword"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblNewPassword" runat="server" Text="新密码" 
                            meta:resourcekey="lblNewPassword"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtNewPassword" runat="server" TextMode="Password"  MaxLength="20"
                            CssClass="textbox" onkeyup="isSecurity(this.value);" 
                            meta:resourcekey="txtNewPassword"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                     
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblConfirmPassword" runat="server" Text="确认新密码" 
                            meta:resourcekey="lblConfirmPassword"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                       <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" MaxLength="20"
                            CssClass="textbox" meta:resourcekey="txtConfirmPassword"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        
                    </td>
                </tr>
                <tr>
                    <td> 
                        &nbsp;                  
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                         &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                       <div id="img_div" class="pwddefault"></div>
                    </td>
                    <td>
                    </td>
                    <td>
                        
                    </td>
                </tr>
            </table>
        </div>
        <div id="div_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnOK" runat="server" Text="<%$Resources:ButtonResource,btnOK%>" CssClass="button" Enabled="False" 
                            onclick="btnOK_Click"   />
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" Text="<%$Resources:ButtonResource,btnCancel%>" CssClass="button" 
                            Enabled="False" />
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnActionID" type="hidden" runat="server" />
    </div>
    </form>
</body>
</html>

